package logs

import "go.uber.org/zap"

// 初始化日志
func InitLogger() {
	cfg := zap.NewDevelopmentConfig()
	cfg.OutputPaths = []string{
		"./msqp.log", "stderr",
	}
	cfg.Encoding = "console"
	logger, _ := cfg.Build()
	zap.ReplaceGlobals(logger)
	//logger, _ := zap.NewDevelopment()
	//zap.ReplaceGlobals(logger)
}
